package com.letfox.common.enums;

/**
 * 错误码
 */
public enum ErrorEnum {

    E001("E001", "已存在"),
    E002("E002", "不能为空");

    private String code;
    private String desc;

    private ErrorEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
